package com.godofgamblers.hotelmanagementsystem.service;

import com.godofgamblers.hotelmanagementsystem.dto.OrderMes;
import com.godofgamblers.hotelmanagementsystem.pojo.Reservation;
import com.godofgamblers.hotelmanagementsystem.pojo.Reservation_orderItem;

import java.util.List;

/**
 * @author Haonan
 * @date 2019/10/14 - 9:38
 */
public interface ReservationService {

    public List<Reservation> findCurrentReservationByUsername(String username);

    public List<Reservation> findCurrentReservationByPhone(String phone);

    public List<Reservation_orderItem> findCurrentReservationItemByOrderId(int orderID);

    public boolean updateCurrentReservationItemFlagByOrderId(String order_item_id);

    public boolean updateCurrentReservationFlagByOrderId(int order_id);

    public List<Reservation> findUnreadComment();

    public boolean updateOrderMessageState(int order_id);

    public boolean updateOrderAllMessageState();

    public Reservation findCurrentReservationByOrderId(int order_id);

    public OrderMes findReservationItemByOrderItemId(int order_item_id);
}
